package com.pine.app.module.security.oauth.provider;

import com.pine.app.module.security.core.Authentication;
import com.pine.app.module.security.oauth.provider.token.OAuth2AccessToken;
import com.pine.app.module.security.oauth.support.HttpTokenRequest;

import java.io.IOException;

/**
 * 权限检查接口
 * @author xiaoyuan
 * @create 2019/10/9
 **/
public interface AuthenticationManager {

    OAuth2AccessToken  accessToken(Authentication authentication) throws IOException;


    OAuth2Authentication authentication(Authentication authentication);

    OAuth2Authentication authentication(String access_token);

}
